package com.yf.model.ai.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yf.model.ai.enums.AiMessageRoleEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户聊天-消息VO
 *
 * @author : YiFei
 * @since : 2025/7/14 13:44
 */
@Schema(description = "用户聊天-消息VO")
@Data
public class UserChatMessageVO {

    /**
     * 主键
     */
    @Schema(description = "主键")
    private Long id;

    /**
     * 会话ID
     */
    @Schema(description = "会话ID")
    private Long conversationId;

    /**
     * 会话内容
     */
    @Schema(description = "会话内容")
    private String content;

    /**
     * 角色
     */
    @Schema(description = "角色")
    private AiMessageRoleEnum role;

    /**
     * Metadata
     */
    @Schema(description = "Metadata")
    private String metadata;

    /**
     * 发送时间
     */
    @Schema(description = "发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime sendTime;
}
